package com.cw.beans;

public class Asset {
     private int        id;
     private String     name;
     private int        type_id;//资产类型 id
     private int        dept_id; //部门 id
     private int        depreciate_id;//折旧 id
     private int        state_id;//状态 id
     private Dept       dept;//部门
     private Depreciate depreciate;//折旧
     private State      state;//状态
     private Zc_Type zc_type;//资产类型
     private String     specifications;//规格
     private String     acquisition_date;//购买日期
     private float      original_value;//原值
     private String      storage_location;//地址
     private String     description;//详情
     private String     supplier;//品牌
     private int        term_of_service;//保修期限

    public Asset(int id, String name, int type_id, int dept_id, int depreciate_id, int state_id,
                 Dept dept, Depreciate depreciate, State state, Zc_Type zc_type, String specifications, String acquisition_date,
                 float original_value, String storage_location, String description, String supplier, int term_of_service) {
        this.id = id;
        this.name = name;
        this.type_id = type_id;
        this.dept_id = dept_id;
        this.depreciate_id = depreciate_id;
        this.state_id = state_id;
        this.dept = dept;
        this.depreciate = depreciate;
        this.state = state;
        this.zc_type = zc_type;
        this.specifications = specifications;
        this.acquisition_date = acquisition_date;
        this.original_value = original_value;
        this.storage_location = storage_location;
        this.description = description;
        this.supplier = supplier;
        this.term_of_service = term_of_service;
    }

    public Asset() {
    }

    @Override
    public String toString() {
        return "Asset{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type_id=" + type_id +
                ", dept_id=" + dept_id +
                ", depreciate_id=" + depreciate_id +
                ", state_id=" + state_id +
                ", dept=" + dept +
                ", depreciate=" + depreciate +
                ", state=" + state +
                ", zc_type=" + zc_type +
                ", specifications='" + specifications + '\'' +
                ", acquisition_date='" + acquisition_date + '\'' +
                ", original_value=" + original_value +
                ", storage_location=" + storage_location +
                ", description='" + description + '\'' +
                ", supplier='" + supplier + '\'' +
                ", term_of_service=" + term_of_service +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public int getDept_id() {
        return dept_id;
    }

    public void setDept_id(int dept_id) {
        this.dept_id = dept_id;
    }

    public int getDepreciate_id() {
        return depreciate_id;
    }

    public void setDepreciate_id(int depreciate_id) {
        this.depreciate_id = depreciate_id;
    }

    public int getState_id() {
        return state_id;
    }

    public void setState_id(int state_id) {
        this.state_id = state_id;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Depreciate getDepreciate() {
        return depreciate;
    }

    public void setDepreciate(Depreciate depreciate) {
        this.depreciate = depreciate;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public Zc_Type getType() {
        return zc_type;
    }

    public void setType(Zc_Type type) {
        this.zc_type = type;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getAcquisition_date() {
        return acquisition_date;
    }

    public void setAcquisition_date(String acquisition_date) {
        this.acquisition_date = acquisition_date;
    }

    public float getOriginal_value() {
        return original_value;
    }

    public void setOriginal_value(float original_value) {
        this.original_value = original_value;
    }

    public String getStorage_location() {
        return storage_location;
    }

    public void setStorage_location(String storage_location) {
        this.storage_location = storage_location;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public int getTerm_of_service() {
        return term_of_service;
    }

    public void setTerm_of_service(int term_of_service) {
        this.term_of_service = term_of_service;
    }
}
